<div class="opaque" style="padding:10px;">
<?php
foreach($stats as $stat)
{
switch ($stat['stat']['category'])
{
	case "blockcreate" :
		$blockcreates[][$stat['stat']['stat']] = $stat['stat']['value'];
		break;
	case "blockdestroy" :
		$blockdestroys[][$stat['stat']['stat']] = $stat['stat']['value'];
		break;
	case "itempickup" :
		$itempickups[][$stat['stat']['stat']] = $stat['stat']['value'];
		break;
	case "itemdrop" :
		$itemdrops[][$stat['stat']['stat']] = $stat['stat']['value'];
		break;
	case "stats" :
		$stats[][$stat['stat']['stat']] = $stat['stat']['value'];
		break;
	case "damagetaken" :
		$damagetakens[][$stat['stat']['stat']] = $stat['stat']['value'];
		break;
	case "damagedealt" :
		$damagedealts[][$stat['stat']['stat']] = $stat['stat']['value'];
		break;
	case "deaths" :
		$deaths[][$stat['stat']['stat']] = $stat['stat']['value'];
		break;
	case "kills" :
		$kills[][$stat['stat']['stat']] = $stat['stat']['value'];
		break;
	default:
		break;
}
}
?>
</div>
<?php 
foreach($blockcreates as $blockcreate)
{
	echo '<div class="player"><div style="float:left">'.$html->image('/img/items/'.($itemsdb[$items[key($blockcreate)]])).'</div><div class="playername">'.key($blockcreate).'<div style="float:right">'.$blockcreate[key($blockcreate)].'</div></div></div>';
//	echo '<div class="player"><div class="playername"></div></div>';
}
?>
